Skip to content

add numerice type on decode#963

Closed
MrSmallLiu wants to merge 1 commit intolib:masterfrom
MrSmallLiu:master
Closed

add numerice type on decode#963
MrSmallLiu wants to merge 1 commit intolib:masterfrom
MrSmallLiu:master

Conversation

@MrSmallLiu
Copy link

No description provided.

@arp242
Copy link
Collaborator

arp242 commented Dec 31, 2025

The numeric type is not a float, but an exact precision format. Converting it to a float loses data and is not correct. I'm not sure if there's any type in the standard library that has the correct semantics that match PostgreSQL's numeric type. I've used https://github.com/shopspring/decimal in the past.

Either way, I'm closing this as it's just wrong.

@arp242 arp242 closed this Dec 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants